package com.wtwd.campus.jdzc.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wtwd.campus.entity.Teacher;
import com.wtwd.campus.model.TeacherExcelImportModel;
import com.wtwd.campus.model.TeacherQueryModel;
import com.wtwd.campus.model.vo.ResultVO;
import com.wtwd.campus.model.vo.TeacherVO;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author zdl
 * @since 2021-07-08
 */
public interface JdzcTeacherService {
    /**
     * 分页查询教师
     *
     * @param page
     * @param teacherQueryModel
     * @return
     */
    IPage<TeacherVO> queryPage(Page page, TeacherQueryModel teacherQueryModel);

    /**
     * 删除教师通过Id
     *
     * @param id
     * @return
     */
    ResultVO deleteTeacherById(Integer id);

    /**
     * 创建教师
     *
     * @param teacher
     * @return
     */
    ResultVO createTeacher(Teacher teacher);

    /**
     * 更新教师
     *
     * @param teacher
     * @return
     */
    ResultVO updateTeacher(Teacher teacher);

    /**
     * 批量插入
     *
     * @param teachers
     */
    ResultVO insertBatch(List<TeacherVO> teachers);

    ResultVO importByExcel(Integer school, List<TeacherExcelImportModel> teacherModelData);

    Teacher getTeacherByPhone(String phone);

    String getTeacherNameByUserId(Integer userId);
}
